<template>
  <div>
    <el-container>
      <el-header>
        <img
          src="http://likede2-admin.itheima.net/img/logo.3673fab5.png"
          alt=""
        />
        <span
          ><span>
            <img
              src=""
              alt=""
            />
            欢迎您，admin</span
          >退出</span
        ></el-header
      >
      <el-container>
        <el-aside width="200px"
          ><el-row class="tac">
            <el-col>
              <el-menu default-active="2" class="el-menu-vertical-demo">
                <el-menu-item index="1">
                  <i class="el-icon-house"></i>
                  <span slot="title" @click="$router.push('/home')"
                    >帝可得</span
                  >
                </el-menu-item>
                <el-submenu index="2">
                  <template slot="title">
                    <i class="el-icon-document"></i>
                    <span>工单管理</span>
                  </template>
                  <el-menu-item-group>
                    <el-menu-item
                      index="1-1"
                      @click="$router.push('/task/business')"
                      >运营工单</el-menu-item
                    >
                    <el-menu-item index="1-2" @click="$router.push('/task/operation')"
                      >运维工单</el-menu-item
                    >
                  </el-menu-item-group>
                </el-submenu>
                <el-submenu index="3">
                  <template slot="title">
                    <i class="el-icon-location-outline"></i>
                    <span>点位管理</span>
                  </template>
                  <el-menu-item-group>
                    <el-menu-item index="1-1" @click="$router.push('/node/region')">区域管理</el-menu-item>
                    <el-menu-item index="1-2" @click="$router.push('/node/node')">点位管理</el-menu-item>
                    <el-menu-item index="1-3" @click="$router.push('/node/partner')">合作商管理</el-menu-item>
                  </el-menu-item-group>
                </el-submenu>
                <el-submenu index="4">
                  <template slot="title">
                    <i class="el-icon-mobile"></i>
                    <span>设备管理</span>
                  </template>
                  <el-menu-item-group>
                    <el-menu-item index="1-1">设备管理</el-menu-item>
                    <el-menu-item index="1-2">设备状态</el-menu-item>
                    <el-menu-item index="1-3">设备类型管理</el-menu-item>
                  </el-menu-item-group>
                </el-submenu>
                <el-submenu index="5">
                  <template slot="title">
                    <i class="el-icon-user"></i>
                    <span>人员管理</span>
                  </template>
                  <el-menu-item-group>
                    <el-menu-item index="1-1">人员列表</el-menu-item>
                    <el-menu-item index="1-2">人效统计</el-menu-item>
                    <el-menu-item index="1-3">工作量列表</el-menu-item>
                  </el-menu-item-group>
                </el-submenu>
                <el-submenu index="6">
                  <template slot="title">
                    <i class="el-icon-shopping-cart-2"></i>
                    <span>商品管理一</span>
                  </template>
                  <el-menu-item-group>
                    <el-menu-item index="1-1">商品类型</el-menu-item>
                    <el-menu-item index="1-2">商品管理</el-menu-item>
                  </el-menu-item-group>
                </el-submenu>
                <el-menu-item index="7">
                  <i class="el-icon-magic-stick"></i>
                  <span slot="title">策略管理</span>
                </el-menu-item>
                <el-menu-item index="8">
                  <i class="el-icon-document"></i>
                  <span slot="title">订单管理</span>
                </el-menu-item>
                <el-menu-item index="9">
                  <i class="el-icon-link"></i>
                  <span slot="title">对账统计</span>
                </el-menu-item>
              </el-menu>
            </el-col>
          </el-row>
        </el-aside>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  name: 'LikedeHome',
  components: {},
  data () {
    return {
      starTime: '',
      endTime: '',
      total: '',
      cancelTotal: '',
      completedTotal: '',
      workerCount: ''
    }
  },
  computed: {},
  methods: {}
}
</script>
<style lang="scss" scoped>
.el-header,
.el-footer {
  color: #333;
  text-align: center;
  line-height: 60px;
  height: 60px;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1999;
  background-image: url();
  background-size: cover;
  background-repeat: no-repeat;
  img {
    width: 88px;
    height: 36px;
    margin-top: 10px;
  }
}
.el-header {
  display: flex;
  justify-content: space-between;
  align-content: center;
  span {
    margin-right: 30px;
    color: #ffffff;
    img {
      width: 35px;
      height: 35px;
    }
  }
}

.el-aside {
  border: none;
  height: 1500px;
}

.el-main {
  background-color: #ffffff;
  color: #333;

  padding: 20px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
.el-row {
  margin-bottom: 20px;
  &:last-child {
    margin-bottom: 0;
  }
}
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  background: #99a9bf;
}
.bg-purple {
  background: #d3dce6;
}
.bg-purple-light {
  background: #e5e9f2;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
</style>
